package com.steel.yfmall.cloud.assistant.controller;

import com.steel.yfmall.cloud.assistant.api.stock.ZgPushProductAPI;
import com.steel.yfmall.cloud.assistant.bean.param.zg.APIZgGoodsTemplateBean;
import com.steel.yfmall.cloud.components.utils.base.APIMsgBean;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: ZgPushProductInfoController
 * @author: liuzhijun
 * @date: 2021-03-19 11:23
 **/
@RestController
public class ZgPushProductInfoController {


    /**
     * 中冠推送商品到电商平台
     *
     * @param zgGoodsTemplateBeanList
     * @return com.steel.yfmall.cloud.components.utils.base.APIMsgBean<java.lang.Integer>
     * @author liuzhijun
     * @date 2021/3/21 16:33
     */
    @RequestMapping("/pushProductInfo")
    APIMsgBean<Integer> pushProductInfo(@RequestBody List<APIZgGoodsTemplateBean> zgGoodsTemplateBeanList) {
        return zgPushProductAPI.pushProductInfo(zgGoodsTemplateBeanList);
    }


    @Resource
    private ZgPushProductAPI zgPushProductAPI;
}
